package comm;

/**
 * Used when an illegal command comes from the client
 */
public class IllegalCommandException extends Exception {
   
   private static final long serialVersionUID = 1L;
   private String cmd;
   
   /**
    * @param cmd    the command
    */
   public IllegalCommandException(String cmd) {
      this.cmd = cmd;
   }

   @Override
   public String getMessage() {
      return "Invalid command: '" + cmd + "'";
   }
   
}
